<link href="../addons/jy_yiliao/resource/css/weui.css" rel="stylesheet">
<link href="../addons/jy_yiliao/resource/css/zan.css?v=1" rel="stylesheet">
<style type="text/css">
</style>
<div class="fui-page order-create-page fui-page-current">
	<div id="carousel-container" href="javascript:" ng-click="pagedata.showinfo=!pagedata.showinfo" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:auto">
				<div ng-class="{'item':1, 'active':$index==0}" ng-repeat="nav in pagedata.store.bannner">
					<a href="{{nav.url}}">
						<img ng-src="{{tomedia(nav.image) || '../core/resource/images/nopic.jpg'}}" style="display: block; width: 100%; height: 100%;">
					</a>
				</div>
			</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="nav in pagedata.store.bannner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
	</div>
	<div class="hospital-swiper-tip">
	<div class="padding-0-15" style="height: 28px;line-height: 28px;position: relative;margin-top: -28px;z-index:11;">
	<div style="position: absolute;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.5);left: 0;top: 0;"></div>
	<div class="his-flex font12" style="position:relative;color: rgba(255, 255, 255, 0.8);">
		<span>{{pagedata.pluginset.name}} - {{pagedata.store.title}}</span>
		<div class="his-flex">
		<span class="marginRight5 bold">{{pagedata.showinfo?'出诊大夫':'详情'}}</span>
		<span class="icon-angle-right font18"></span>
		</div>
	</div>
	</div>
	</div>
	<div ng-if="pagedata.showinfo" style="padding-bottom:3rem">
		<div class="weui-panel marginBottom10">
				<div class="weui-panel__hd">
				<i class="icon icon-dianpu red-color font20"></i>
				<span id="name" class="fontBold deep-color" style="vertical-align: middle;">{{pagedata.store.title}}</span>
				</div>
				<div id="inst" class="weui-panel__bd padding15 lineHeight20 middle-color">
				<p ng-bind-html="trust(pagedata.store.content)"></p>
				</div>
		</div>
		<div class="weui-panel marginBottom10">
				<div class="weui-panel__hd">
				<i class="icon icon-map red-color font20"></i>
				<span id="name" class="fontBold deep-color" style="vertical-align: middle;">地址</span>
				</div>
				<div id="inst" class="weui-panel__bd padding15 lineHeight20 middle-color">
				<p>{{pagedata.store.address}}
				<span class="syscolor" ng-click="pagedata.openLocation(pagedata.store)">导航>></span>
				</p>
				</div>
		</div>
		<div class="weui-panel marginBottom10">
				<div class="weui-panel__hd">
				<i class="icon icon-phone red-color font20"></i>
				<span id="name" class="fontBold deep-color" style="vertical-align: middle;">电话</span>
				</div>
				<div id="inst" class="weui-panel__bd padding15 lineHeight20 middle-color">
				<p class="red-color">{{pagedata.store.tel}}</p>
				</div>
		</div>
	</div>
	<div ng-if="!pagedata.showinfo" class="weui-cells">
	<div class="padding-10-15"><span class="title-block">医馆出诊大夫</span></div>
	<ul class="diseases-ul marginLeft12 marginRight12 his-flex">
		<li ng-repeat="value in pagedata.labels">
			<a href="javascript:" ng-click="pagedata.params.labelid=value.id;pagedata.get_list();">{{value.title}}</a>
		</li>
	</ul>
	<div ng-include="sys_html('common/_workerlist')"></div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script type="text/javascript">
scope.pagedata.openLocation=function(item){
	wx.openLocation({
	latitude: item.lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
	longitude: item.lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
		name: item.title, // 位置名
		address: item.address, // 地址详情说明
		scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
		infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
		success:function(){
			//alert(1111);
		}
	});
}
</script>